package br.com.rookgraph;

/**
 * Representação de uma aresta.
 * 
 * @author Luan Pontes 
 * @singe 16-10-12
 *
 */
public class Edge {

	int origin;
	int target;
	int alfa;
	int sigma;

	public Edge(int origin, int target) {
		this.target = target;
		this.origin = origin;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj instanceof Edge) {
			Edge other = (Edge) obj;

			return (this.origin == other.origin && this.target == other.target)
					|| (this.origin == other.target && this.target == other.origin);
		}
		
		return false;
	}
	
	@Override
	public String toString() {
		return this.origin +"<--->"+this.target;
	}
}